{% extends "dynamic/base.html" %}

{% load i18n adminmedia %}

{% block stylesheet %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% block coltype %}flex{% endblock %}

{% block extrahead %}{{ block.super }}

<meta http-equiv="refresh" content="10"/>
{% endblock extrahead %}

{% block content %}
<div id="content-main">
    <div class="module">

    <table width="100%">
        <caption>{% trans "Recent queries" %}</caption>
        <thead>
            <tr>
                <th>{% trans "Time" %}</th>
                <th>{% trans "SQL" %}</th>
            </tr>
        </thead>

        {% for query in queries %}
        <tr>
            <td>
                {{ query.time }}
            </td>
            <td>
                {{ query.sql }}
            </td>
        </tr>
        {% endfor %}
    </table>

    </div>
</div>
{% endblock content %}

